package main

import (
	"fmt"
	"gateway/src/specialHandle"
	"net/http"
	"strings"
)

type test interface {
}

func getUrlPathSlice(input_url string) []string {

	return strings.Split(input_url, "/")
}
func main() {
	//过滤链测试成功
	test2()

}
func test1() {
	test := "/test/test1" //test2[0]: test2[1]: test test[2]: test1
	//test_ := "/test"//test2[0]: test2[1]: test
	test2 := getUrlPathSlice(test)
	fmt.Println("test2[0]:", test2[0])
	fmt.Println("test2[1]:", test2[1])
	fmt.Println("test2[2]:", test2[2])
	test3 := strings.Join(test2[2:], "/")
	fmt.Println("融合后")
	fmt.Println("/" + test3)
	//fmt.Println("test2[2]:",test2[2])
	fmt.Println("ok")
}
